  $(document).ready(function() 
   {
       $("#con_city_cod").fcbkcomplete({ json_url: "airport_code.php",cache:false,filter_case: false,filter_hide: false,firstselected: false});
	  $("#airline_option").click(function(){
										  
								    $("#a1").show();
								   $("#b1").show();
								   $("#c1").html("<select id='include' name='include'></select>")						
								   $("#c2").html("<select id='exclude' name='exclude'></select>")	
$("#include").fcbkcomplete({ json_url: "airline.php",cache:false,filter_case: false,filter_hide: false,firstselected: false});



$("#exclude").fcbkcomplete({json_url: "airline.php",cache: false,filter_case: false,filter_hide: false,firstselected: false});
								   })
	  
	  $("#airline_option2").click(function(){
								   $("#a1").show();
								   $("#b1").show();
								   $("#c1").html("<select id='include' name='include'></select>")						
								   $("#c2").html("<select id='exclude' name='exclude'></select>")	
$("#include").fcbkcomplete({ json_url: "airline.php",cache:false,filter_case: false,filter_hide: false,firstselected: false});
$("#exclude").fcbkcomplete({json_url: "airline.php",cache: false,filter_case: false,filter_hide: false,firstselected: false});
								   
								   
								   })
	  
	  $("#airline_option1").click(function(){
										  
								   $("#a1").hide();
								   $("#b1").hide();
								   $("#c1").html("<select id='include' name='include'></select>")						
								   $("#c2").html("<select id='exclude' name='exclude'></select>")	
								   
								   
								   })
	  
	  
	  
	  
	$("#include").fcbkcomplete({ json_url: "airline.php",cache:false,filter_case: false,filter_hide: false,firstselected: false});
$("#exclude").fcbkcomplete({json_url: "airline.php",cache: false,filter_case: false,filter_hide: false,firstselected: false});
	
  
  
  });
  
  
  str = $("input[name='airline_option']:checked").val(); 

if(str=="N")
{
$("#a1").hide();
	$("#b1").hide();
}
  
		
function submit_form(){
	
	
   
		$.ajax({
				type:"POST",
				url:"make_request.php",
				data:$("#update_request").serialize(),
				cache: false,
				
					
				success: function(msg){
     				$("#contactArea").html("<div style='padding-top:120px; text-align:center;  color:green;'><img src='accept.png' align='absmiddle'> Your New Request is sucessfully Updated....</div>");
					jQuery("#flex2").flexReload(); 
					disablePopup();
   						}

		});
		 $("#contactArea").html("<div style='padding-top:120px; text-align:center;'><img src='18-0.gif' align='absmiddle'><br>Updating New Request ....</div>");

}




// Changed .....................................//
function submit_form1(){
	
	
	
	   
		$.ajax({
				type:"POST",
				url:"make_request.php",
				data:$("#create_request").serialize(),
				cache: false,
				
				success: function(msg){
     				$("#contactArea").html("<div style='padding-top:120px; text-align:center;  color:green;'><img src='accept.png' align='absmiddle'> Your New Request is sucessfully Created....</div>");
					jQuery("#flex2").flexReload(); 
					disablePopup();
   						}

		});
		 $("#contactArea").html("<div style='padding-top:120px; text-align:center;'><img src='18-0.gif' align='absmiddle'><br>Creating New Request ....</div>");
}
//.............................................................//

